projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f102de
)
(set-case-syntax-pair): Detect invalid calls and signal an error.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 16 Dec 2001 03:45:57 +0000
(
03:45
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 16 Dec 2001 03:45:57 +0000
(
03:45
+0000)
lisp/case-table.el
patch
|
blob
|
history
diff --git
a/lisp/case-table.el
b/lisp/case-table.el
index 265f951968953746842aa4bc521df2181ca1ebd6..f83123bf19f93f115cfa4c3ef1e2c6ff1ddfb3d8 100644
(file)
--- a/
lisp/case-table.el
+++ b/
lisp/case-table.el
@@
-103,6
+103,9
@@
This sets the entries for characters UC and LC in TABLE, which is a string
that will be used as the downcase part of a case table.
It also modifies `standard-syntax-table' to give them the syntax of
word constituents."
+ (unless (= (charset-bytes (char-charset uc))
+ (charset-bytes (char-charset lc)))
+ (error "Can't casify chars with different `charset-bytes' values"))
(setq uc (set-case-syntax-1 uc))
(setq lc (set-case-syntax-1 lc))
(aset table uc lc)